.word-header {
  padding: 5px 20px;
  background: #f8f9ff;
  display: flex;
  justify-content: space-between;

}

.word {
  font-size: 1rem;
  font-weight: bold;
  display: inline-flex;
  color: #5b9f60;
  background-color: #dbeadf;
  padding: 10px;
  border-radius: 20px;
}

.word-selection-game {
  background-color: #FAFCFF;
  position: relative;
  padding-top: 0.8rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 主内容 */
.main-content {
  padding: 16px;
  padding-bottom: 80px;
}

/* 图片区域 */
.image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.image-container {
  position: relative;
  width: 70%;
  aspect-ratio: 1 / 1;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.question-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
 // padding: 16px;
}

.pronunciation-btn.floating {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(30, 183, 216, 0.9);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 选项区域 */
.options-section {
  max-width: 400px;
  margin: 0 auto;
}

.option-btn {
  border-radius: 15px;
  //padding: 14px 16px;
  height: 50px;
  margin-top: 4px;
  font-size: 16px;
  border: 1px solid #e5e5e5;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-weight: 700;
  font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
}

.option-btn:not(:disabled):hover {
  transform: scale(1.02);
}

.option-btn-selected {
  border-radius: 15px;
  height: 50px;
  margin-top: 4px;
  font-size: 16px;
  border: 1px solid #1EB7D8;
  transition: all 0.2s ease;
  font-weight: 700;
  font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
  background-color: rgba(30, 183, 216, 0.1) ;
  box-shadow: 0 0 0 3px rgba(30, 183, 216, 0.2) ;
}

.option-btn.correct {
  border-color: #4CAF50 !important;
  background-color: rgba(76, 175, 80, 0.1) !important;
  animation: correctPulse 0.5s ease-in-out;
}

.option-btn.wrong {
  border-color: #F44336 !important;
  background-color: rgba(244, 67, 54, 0.1) !important;
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* 底部按钮 */
.bottom-actions {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
}

.check-btn {
  background-color: #5A9E60;
  color: white;
  border-radius: 20px;
  font-weight: bold;
  padding: 14px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.check-btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.check-btn.success {
  background-color: #4CAF50;
}

/* 庆祝动画 */
.celebration-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50;
}

.confetti {
  position: absolute;
  width: 16px;
  height: 16px;
  animation: confetti 5s ease-in-out forwards;
}

/* 反馈弹窗 */
.feedback-content {
  text-align: center;
  padding: 8px 0;
}

.feedback-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.feedback-icon.correct {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.feedback-icon.wrong {
  background-color: rgba(244, 67, 54, 0.2);
  color: #F44336;
}

.feedback-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.feedback-title.correct {
  color: #4CAF50;
}

.feedback-title.wrong {
  color: #F44336;
}

.feedback-message {
  color: #666;
  margin-bottom: 24px;
}

/* 单词弹窗 */
.words-modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5A9E60;
  font-weight: bold;
  font-size: 18px;
}

.words-grid {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 8px;
}

.word-card {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.word-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pronunciation-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(90, 158, 96, 0.2);
  color: #5A9E60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}


.actions {
  margin-top: 30px;
}

.continue-button {
  height: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 20px;
  background: #8cbb90;
  //background: linear-gradient(to right, rgb(41 155 89), rgb(69 123 92));
  //background: linear-gradient(to bottom, rgb(207 255 234), rgb(241 255 248));
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(255, 126, 95, 0.3);
  transition: all 0.3s ease;
}

.continue-button:disabled {
  background: #f0f0f0;
  color: #bfbfbf;
  box-shadow: none;
  cursor: not-allowed;
}

.continue-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 126, 95, 0.4);
}

.list-modal {
  max-width: 400px;
  max-height: 80vh;
  padding: 25px 20px 8px;
  --border-radius: 24px;
}

.list-content {
  .list-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .header-title {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .word-list {
    margin-top: 15px;

    .word-item {
      padding: 12px 15px;
      border-radius: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      border: 1px solid #f0f0f0;
    }

    .word-item-current {
      padding: 12px 15px;
      border-radius: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      border: 1px solid #f0f0f0;
      background-color: #5a9e6033;
      border-color: #5a9e604d;
    }

    .word-inco {
      color: #ddd;
    }

    .word-inco-current {
      color: #1EB7D8;
    }


  }

  .close-button {
    display: block;
    margin: 1.5rem auto 0;
    border-radius: 9999px;
    background-color: #f3f4f6;
    font-weight: 700;

  }
}

/* 动画 */
@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* 响应式调整 */
@media (max-height: 600px) {
  .image-container {
    aspect-ratio: 4 / 3;
  }
}